package com.cskaoyan.bean.wx_home_index;

import com.cskaoyan.bean.goods.MarketGoods;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Description:
 * @Author: WD created on 2021-09-18 17:08
 * @Version:
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class InnerHotGoods {
    private Integer id;
    private String name;
    private String brief;
    private String picUrl;
    private Boolean isNew;
    private Boolean isHot;
    private BigDecimal counterPrice;
    private BigDecimal retailPrice;


    public InnerHotGoods(MarketGoods marketGoods) {
        this.id = marketGoods.getId();
        this.name = marketGoods.getName();
        this.brief = marketGoods.getBrief();
        this.picUrl = marketGoods.getPicUrl();
        this.isNew = marketGoods.getIsNew();
        this.isHot = marketGoods.getIsHot();
        this.counterPrice = marketGoods.getCounterPrice();
        this.retailPrice = marketGoods.getRetailPrice();


    }
}
